Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat add model version #57

Merged
merged 26 commits into from
Oct 18, 2024
Merged

Feat add model version #57

merged 26 commits into from
Oct 18, 2024

Conversation

majensen
Copy link
Collaborator

Added version-aware queries to mdb.py. Added tests against new docker image maj1/mdb-test-versioned, sample versioned MDB on neo4j 4.4.

For these to work and be backwards-compatible to an unversioned MDB, the MDB must have Model nodes for each model represented. If there are multiple versions of a model in the db, each (model, version) pair must have a Model node, with the 'version' property of the Model node set to the version string. The latest version of a Model is flagged with an 'is_latest' property in the Model node, set to true.

The calling convention in mdb.py is: if the version argument is not present, the operation proceeds on the latest version only; if it is set, it proceeds on that model version; if version = "*", it proceeds across all versions of the given model.

Note - I had to build the test db docker directly on an Ubuntu machine, rather than on my macbook, to get the Github Actions ubuntu runner to run it. There were platform mismatches that that seemed to fix.

@majensen
Copy link
Collaborator Author

Hit the limit with Docker Hub pulls.

@majensen
Copy link
Collaborator Author

Re-ran each test job individually, and all succeeded.

Copy link
Collaborator

@nelsonwmoore nelsonwmoore left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

@majensen majensen merged commit 615b6e8 into master Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants